package cn.edu.buu.news.util;

public enum ExceptionInfoEnum {
    GLOBALERROR("服务器异常",500),
    HEADPICALLOWEXTENDS("头像只允许.png,.jpg,.gif",500),
    FILESIZENOTALLOW("您上传的文件超出40KB,请重新选择",500);

    private String errorMessage;
    private Integer code;
    ExceptionInfoEnum(String errorMessage, Integer  code){
        this.errorMessage = errorMessage;
        this.code = code;
    }
    public String getErrorMessage() {
        return this.errorMessage;
    }
    public Integer getCode() {
        return code;
    }

}
